using System;
using Bingo.API.Config;
using Bingo.Config;
using CatLib;

namespace Bingo.Facades
{
    public class ConfigSystem : Facade<IConfigSystem>
    {
        public static void Load()
        {
            Instance.Load();
        }

        public static T GetOne<T>() where T : IConfig
        {
            return Instance.GetOne<T>();
        }

        public static T Get<T>(int id) where T : IConfig
        {
            return Instance.Get<T>(id);
        }

        public static T TryGet<T>(int id) where T : IConfig
        {
            return Instance.TryGet<T>(id);
        }

        public static IConfig[] GetAll(Type type)
        {
            return Instance.GetAll(type);
        }
    }
}